package FIT::Document::Transformer::Base;

use FIT::Class;
use FIT::Document::Parser::Twig;

# TODO transforms should check the tag on their target element

sub escape {
    local $_ = shift;
    s/&/&amp;/go;
    s/</&lt;/go;
    s/>/&gt;/go;
    # TODO: \n and &nbsp; treatment!
    # should this be text to html? or is this only for pre element?
    return $_;
}


